package com.cd.service.party;

import java.util.List;
import com.cd.bean.Party;

/**
 *  党建工作
 *@Author zhk
 *@Date 2018-1-11
 **/
public interface PartyService {

	/**
	 * 新增
	 * @param news
	 * @throws Exception
	 */
	public void save(Party party) throws Exception;
	/**
	 * 通过id删除
	 * @param id
	 * @throws Exception
	 */
	public void delete(Integer id) throws Exception;
	/**
	 * 更新
	 * @param news
	 * @throws Exception
	 */
	public void edit(Party party) throws Exception;
	/**
	 * 查询列表（全部）
	 * @return list
	 * @throws Exception
	 */
	public List<Party> listAll() throws Exception;
	/**
	 * 通过id获取
	 * @param id
	 * @return party
	 * @throws Exception
	 */
	public Party findById(Integer id) throws Exception;
	/**
	 * 批量删除
	 * @param id
	 * @throws Exception
	 */
	public void deleteAll() throws Exception;
	/**
	 * 返回记录总数
	 * @return int
	 * @throws Exception
	 */
	public Integer size() throws Exception;
	/**
	 * 返回有限集合（6）
	 * @return
	 * @throws Exception
	 */
	public List<Party> listLimit() throws Exception;
	
}
